package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZFZB_DR"
 *     
*/
public class ZfzbDr implements Serializable {

    /** identifier field */
    private String drbh;

    /** persistent field */
    private String nd;

    /** nullable persistent field */
    private String xh;

    /** persistent field */
    private String cflxDm;

    /** persistent field */
    private String zffsDm;

    /** persistent field */
    private String zclxDm;

    /** persistent field */
    private String kmbm;

    /** nullable persistent field */
    private String xmbm;

    /** persistent field */
    private BigDecimal czje;

    /** persistent field */
    private BigDecimal xtje;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public ZfzbDr(String drbh, String nd, String xh, String cflxDm, String zffsDm, String zclxDm, String kmbm, String xmbm, BigDecimal czje, BigDecimal xtje, String dwbh, String zt1, String zt2) {
        this.drbh = drbh;
        this.nd = nd;
        this.xh = xh;
        this.cflxDm = cflxDm;
        this.zffsDm = zffsDm;
        this.zclxDm = zclxDm;
        this.kmbm = kmbm;
        this.xmbm = xmbm;
        this.czje = czje;
        this.xtje = xtje;
        this.dwbh = dwbh;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public ZfzbDr() {
    }

    /** minimal constructor */
    public ZfzbDr(String drbh, String nd, String cflxDm, String zffsDm, String zclxDm, String kmbm, BigDecimal czje, BigDecimal xtje, String dwbh) {
        this.drbh = drbh;
        this.nd = nd;
        this.cflxDm = cflxDm;
        this.zffsDm = zffsDm;
        this.zclxDm = zclxDm;
        this.kmbm = kmbm;
        this.czje = czje;
        this.xtje = xtje;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="DRBH"
     *         
     */
    public String getDrbh() {
        return this.drbh;
    }

    public void setDrbh(String drbh) {
        this.drbh = drbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="XH"
     *             length="50"
     *         
     */
    public String getXh() {
        return this.xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    /** 
     *            @hibernate.property
     *             column="CFLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getCflxDm() {
        return this.cflxDm;
    }

    public void setCflxDm(String cflxDm) {
        this.cflxDm = cflxDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZFFS_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZffsDm() {
        return this.zffsDm;
    }

    public void setZffsDm(String zffsDm) {
        this.zffsDm = zffsDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZCLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZclxDm() {
        return this.zclxDm;
    }

    public void setZclxDm(String zclxDm) {
        this.zclxDm = zclxDm;
    }

    /** 
     *            @hibernate.property
     *             column="KMBM"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getKmbm() {
        return this.kmbm;
    }

    public void setKmbm(String kmbm) {
        this.kmbm = kmbm;
    }

    /** 
     *            @hibernate.property
     *             column="XMBM"
     *             length="50"
     *         
     */
    public String getXmbm() {
        return this.xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    /** 
     *            @hibernate.property
     *             column="CZJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getCzje() {
        return this.czje;
    }

    public void setCzje(BigDecimal czje) {
        this.czje = czje;
    }

    /** 
     *            @hibernate.property
     *             column="XTJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getXtje() {
        return this.xtje;
    }

    public void setXtje(BigDecimal xtje) {
        this.xtje = xtje;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("drbh", getDrbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZfzbDr) ) return false;
        ZfzbDr castOther = (ZfzbDr) other;
        return new EqualsBuilder()
            .append(this.getDrbh(), castOther.getDrbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getDrbh())
            .toHashCode();
    }

}
